<%--
  Created by IntelliJ IDEA.
  User: YanHilin
  Date: 2020/4/24
  Time: 9:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
        <a class="navbar-brand" href="#">SUBSCRIBER</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
                aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item active">
                    <a class="nav-link " href="page/user/index.jsp">鲜花搜索 <span class="glyphicon glyphicon-search"></span> </a>
                </li>
                <li class="nav-item active">
                    <a class="nav-link " href="page/cmain/cart.jsp">&nbsp;&nbsp;&nbsp;购物车<span class="glyphicon glyphicon-shopping-cart"></span></a>
                </li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown1" role="button"
                       data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        &nbsp;&nbsp;&nbsp;收藏夹  <span class="glyphicon glyphicon-heart"></span>
                    </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdow1">
                        <a class="dropdown-item" href="collectServlet?action=queryByUserid">我的收藏</a>
                        <a class="dropdown-item" href="collectServlet?action=clear">清空收藏夹</a>
                    </div>
                </li>
              <%--  <li class="nav-item active">
                    <a class="nav-link " href="collectServlet?action=queryByUserid">我的收藏 <span class="glyphicon glyphicon-heart"></span></a>
                </li>--%>
                <li class="nav-item active">
                    <a class="nav-link" href="evaluateServlet?action=queryMyEvaluate&id=${sessionScope.user.userid}"> &nbsp;&nbsp;&nbsp;  我的评价 <span class="glyphicon glyphicon-pencil"></span> </a>
                </li>
                <li class="nav-item active">
                    <a class="nav-link " href="orderServlet?action=showMyOrders&userid=${sessionScope.user.userid}">&nbsp;&nbsp;  我的订单 <span class="glyphicon glyphicon-list-alt"></span></a>
                </li>
                <li class="nav-item active">
                    &nbsp;&nbsp; <img id="headphoto" src="static/picUser/${sessionScope.user.head_sculpture}" width="30px" height="30px">
                </li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown2" role="button"
                       data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        &nbsp;&nbsp;&nbsp; ${sessionScope.user.pet_name}
                    </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown2">
                        <a class="dropdown-item" href="page/user/showMess.jsp">查看基本信息</a>
                       <%-- <a class="dropdown-item" href="userServlet?action=showSelfMess&userid=${sessionScope.user.userid}">查看基本信息</a>--%>
                        <a class="dropdown-item" href="page/user/modifyPhoto.jsp">修改头像</a>
                        <a class="dropdown-item" href="page/user/editMess.jsp">编辑基本信息</a>
                        <a class="dropdown-item" href="page/user/modifyPass.jsp">修改密码</a>
                        <a class="dropdown-item" href="page/user/deleteSelf.jsp">注销</a>
                       <%-- <a id="deleteSelf" class="dropdown-item" href="userServlet?action=deleteSelf&userid=${sessionScope.user.userid}">注销</a>--%>
                    </div>
                </li>
                <li class="nav-item active">
                    <a class="nav-link " href="userServlet?action=logout">&nbsp;&nbsp;&nbsp;退出 <span class="glyphicon glyphicon-log-out"></span></a>
                </li>
            </ul>
        </div>
    </nav>
</div>
